<?php

/**
 * A dummy backend which always reports cache mess.
 * May be used as debug stub to temporarily disable caching.
 */
class Cache_Backend_Null extends Zend_Cache_Backend
{
    public function __construct()
    {
    }


    public function setDirectives($directives)
    {
    }


    public function load($id, $doNotTestCacheValidity = false)
    {
    	return false;
    }


    public function test($id)
    {
    	return false;
    }


    public function save($data, $id, $tags = array(), $specificLifetime = false)
    {
    	return true;
    }


    public function remove($id)
    {
    	return true;
    }


    public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array())
    {
    }
}
